/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.carbons.impl;

import za.ac.cput.carbons.carbons.ISPViolation1FIXED;
import za.ac.cput.carbons.carbons.ISPViolation2FIXED;

/**
 *
 * @author Zeus
 */
public class ISPViolationImplFIXED implements ISPViolation1FIXED, ISPViolation2FIXED {

    @Override
    public double refill(double amount) {
        return amount;
    }

    @Override
    public boolean radioOn(char state) {
        return (state == 'y' || state == 'Y');
    }

    @Override
    public boolean hasTowbar(char tow) {
        return (tow == 'y' || tow == 'Y');
    }

    @Override
    public double drive(double distance) {
        return distance * 0.5;
    }
}
